package com.jse.oo.design.pattern.behavioral.observer.publish;

public class Quit implements Subscriber<String> {
	private Quit() {
	}

	public static Quit create() {
		return new Quit();
	}

	@Override
	public void getPublication(String data) {
		if (data.equals("quit")) {
			System.exit(0);
		}
	}
}
